package org.study.neo4j.boot.dto;

import lombok.Data;

import java.util.Set;

/**
 * 作用描述
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2025年04月09日
 */
@Data
public class CourseDTO {
    private Long id;
    private String code;
    private String title;
    private Integer credits;
    private TeacherSimpleDTO teacher;
    private Set<StudentSimpleDTO> students;

    @Data
    public static class TeacherSimpleDTO {
        private Long id;
        private String name;
    }

    @Data
    public static class StudentSimpleDTO {
        private Long id;
        private String name;
    }
}
